package com.zhouk.cws.mapper;

import com.zhouk.cws.domain.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Create By Zhouke on 2019/02/28
 */
@Repository
public interface UserMapper {
    static final String TABLE_NAME = "users";

    @Select("select * from users where username=#{username}")
    User findByUsername(String username);
}
